#pragma once
#include <QObject>
#include "User.h"

class DbHandler : public QObject {
    Q_OBJECT
public:
    explicit DbHandler(QObject *parent = nullptr) : QObject(parent) {}

    void query(const char* toQuery);

    void tryLogin(const QString& phone, const QString& password);
    void tryRegister(const QString& username, const QString& phone, const QString& password, const quint16& userType);
};